const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  pages: {
    index: {
      entry: 'src/renderer/main.js'
    }
  },
  pluginOptions: {
    electronBuilder: {
      mainProcessFile: 'src/background/main.js',
      builderOptions: {
        appId: 'com.logz.${APP_PACKAGE_NAME}',
        productName: process.env.VUE_APP_NAME,
        mac: {
          icon: 'build/icons/icon.icns'
        },
        win: {
          icon: 'build/icons/icon.ico'
        },
        linux: {
          icon: 'build/icons/icon.icns'
        },
      }
    }
  }
})
